package com.example.shop.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.shop.util.NotNull;
import lombok.Data;

import java.util.Date;

@Data
@TableName("tbl_order")
public class OrderBean {

    @NotNull
    public Integer id;

    @NotNull
    public String name;

    @NotNull
    public String mobile;

    @NotNull
    public String address;

    @NotNull
    public Integer total;

    @NotNull
    public Date ctime;

    @NotNull
    public Integer uid;

    @TableField(exist = false)
    public Integer count;

    @TableField(exist = false)
    public Integer pid;

    @TableField(exist = false)
    public String product;

    @TableField(exist = false)
    public String logo;

    @TableField(exist = false)
    public String hot;

    @TableField(exist = false)
    public String username;

}
